import request from "@/index/utils/request"

//添加
export function addAgreement(data) {
    return request({
        url: "/apis/admin/base/config/agreement", method: "post", data
    });
}

//列表
export function agreementList(params) {
    return request({
        url: "/apis/admin/base/config/agreement", method: "get", params
    });
}

//删除
export function delAgreement(id) {
    return request({
        url: `/apis/admin/base/config/agreement/${id}`, method: "delete",
    });
}

//更新
export function upDateAgreement(data, id) {
    return request({
        url: `/apis/admin/base/config/agreement/${id}`, method: "put", data
    });
}
